import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/12
 * Time: 16:18
 * Description: No Description
 */
interface Isotop {
    void fun();
}

class Student implements Isotop {
    public String name;
    public int age;
    public String Sex;

    public Student(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        Sex = sex;
    }


    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", Sex='" + Sex + '\'' +
                '}';
    }

    public void fun() {
        System.out.println("普通成员方法");
    }
}
public class TestDemo {
    public static void main(String[] args) {
        Object obj = new Student();



    }
    public static void main1(String[] args) {
        Object obj = new int[]{1,2,3,4,5,6,7,9};
        Object obj1 = new double[]{8,8,9,1,2,20,};
        Object obj2 = 88.88;
        int[] ret = (int[])obj;
        double[] ret1 = (double[])obj1;

        for(int i : ret) {
            System.out.print(i+" ");
        }
        System.out.println();

        System.out.println(Arrays.toString(ret1));

        System.out.println(obj2);
    }
}